﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.UI.Common;
using PSE.ProcessManager.Common.Process;
using Sinacor.Infra.Core.ProcessManager.Client.UI;
using Sinacor.Process.Bovespa.Casamento.Client;
using Sinacor.Process.Bovespa.Casamento.ProcessEntity;

namespace Sinacor.UI.Bovespa.ManutencaoOrdens.Communication
{
    /// <summary>
    /// CasamentoAutomaticoPreBoleto
    /// </summary>
    public class CasamentoAutomaticoPreBoleto : BaseCommunicationProcess<Sinacor.Process.Bovespa.Casamento.Client.CasamentoAutomaticoPreBoleto>
    {
        #region Construtor
        /// <summary>
        /// CasamentoAutomaticoPreBoleto
        /// </summary>
        /// <param name="sessionInformation">SessionInformation</param>
        public CasamentoAutomaticoPreBoleto(SessionInformation sessionInformation)
            : base(sessionInformation)
        {
            try
            {
                Connect();
            }
            catch (Exception ex)
            {
                HandleFault(ex);
            }   
        }
        #endregion Construtor

        #region Execute
        /// <summary>
        /// Execute
        /// </summary>
        /// <param name="model">Model.DadosCasamentoAut</param>
        public void Execute()
        {
            try
            {
                Process.Execute();
            }
            catch (Exception ex)
            {
                HandleFault(ex);
            }     
        }
        #endregion Execute
    
    }
}
